package it.polimi.jita.cp.block.scheduler;

import it.polimi.jita.cp.block.Input;

import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.Set;

public class SchedulerInput extends Input {
	private final Integer systemCapacity;
	private final Set<IVirtualMachineSchedulerData> virtualMachines = new LinkedHashSet<>();

	public SchedulerInput(Integer systemCapacity) {
		super();
		this.systemCapacity = systemCapacity;
	}

	public boolean add(IVirtualMachineSchedulerData arg0) {
		return virtualMachines.add(arg0);
	}

	public boolean addAll(Collection<IVirtualMachineSchedulerData> arg0) {
		return virtualMachines.addAll(arg0);
	}

	protected Set<IVirtualMachineSchedulerData> getVirtualMachines() {
		return Collections.unmodifiableSet(virtualMachines);
	}

	protected Integer getSystemCapacity() {
		return systemCapacity;
	}

}
